package com.gelsanalyzer.business;

public class UserSession { //Is it the UserSession's job to loop
    private User user; // the adding of classes or the controllers?
    private CourseEntryList cel; // from JO, probably Controllers makes most sense... 
    private boolean finishedEntering;

    public UserSession(User u) {
        user = u;
        cel = new CourseEntryList();
        finishedEntering = false;
    }

    public void addCourse(Course c, Department d) {
        cel.addCourse(new CourseEntryItem(c,d));
    }

    public boolean getFinishedEntering() {
        return finishedEntering;
    }

    public void setFinishedEntering(boolean b) {
        finishedEntering = b;
    }

    public User getUser() {
        return user;
    }

    public CourseEntryList getCel() {
        return cel;
    }

}
